home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / other / python-1.52 / source / python / pyfpe.c < prev    next >
C/C++ Source or Header  |  1999-06-14  |  629b  |  25 lines

  1. #include "config.h"
  2. #include "pyfpe.h"
  3. /* 
  4.  * The signal handler for SIGFPE is actually declared in an external
  5.  * module fpectl, or as preferred by the user.  These variable
  6.  * definitions are required in order to compile Python without
  7.  * getting missing externals, but to actually handle SIGFPE requires
  8.  * defining a handler and enabling generation of SIGFPE.
  9.  */
  10.  
  11. #ifdef WANT_SIGFPE_HANDLER
  12. jmp_buf PyFPE_jbuf;
  13. int PyFPE_counter = 0;
  14. #endif
  15.  
  16. /* Have this outside the above #ifdef, since some picky ANSI compilers issue a 
  17.    warning when compiling an empty file. */
  18.  
  19. double
  20. PyFPE_dummy(dummy)
  21.     void *dummy;
  22. {
  23.     return 1.0;
  24. }
  25.